<template>
  <div class="Nav pl-12px pr-24px">
    <div class="Nav_left items-center">
      <img
        src="@/assets/img/icon_logo.png"
        class="logo"
        @click="open('index')"
      />
      <span class="line">|</span>
      <span class="name">运营管理平台</span>
    </div>
    <div class="Nav_right">
      <img src="@/assets/img/icon_search.png" alt="" class="icon" />
      <img src="@/assets/img/icon_message.png" alt="" class="icon ml-24px" />
      <div class="flex items-center ml-40px">
        <img src="@/assets/img/logo.png" alt="" class="icon" />
        <span class="ml-4px">郭德纲(036172)</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    open(path) { 
      this.$router.push({ path });
    },
  },
};
</script>

<style scoped lang="scss">
.Nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 50px;
  background: #ffffff;
  box-shadow: inset 0px -1px 0px 0px #f0f0f0;

  .Nav_left {
    display: flex;
    .logo {
      width: 137px;
      height: 36px;
    }
    .line {
      margin-left: 10px;
      margin-right: 4px;
    }
    .name {
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #6f7583;
    }
  }
  .Nav_right {
    display: flex;
    align-items: center;
    .icon {
      width: 20px;
      height: 20px;
    }
  }
}
</style>
